<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第一个vue程序</title>
    <script src="js/vue.js"></script> 
</head>
<body>
    <div id="app">
        {{name}}<br>
        {{1+2}}<br>
        {{age>=18?'成年人':'未成年'}}
    </div>
    <div id="app1">
        {{name}}
    </div>
</body>
</html>
<script>
    var vm=new Vue({
        el:'#app',
        data:{
            name:'Giles',
            age:18
        }
    });
</script>